﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HouseOfCards
{
   /// <summary>
   /// Object that represents a video poker pay-out
   /// </summary>
	public class PayOut
	{
      /// <summary>
      /// Creates a new PayOut object
      /// </summary>
      /// <param name="coinValue">Value of the coin</param>
		public PayOut(decimal coinValue)
		{
			_coinValue = coinValue;
		}

      private decimal _coinValue;
		private int _credits;

      /// <summary>
      /// Number of credits
      /// </summary>
		public int Credits
		{
			get { return _credits; }
			set { _credits = value; }
		}

		private decimal _amount;

      /// <summary>
      /// Amount of payout (credits X coin value)
      /// </summary>
		public decimal Amount
		{
			get 
			{
				_amount = _credits * _coinValue;
				return _amount; 
			}
		}
		private PokerHands _pokerHand;

      /// <summary>
      /// Poker hand used to determine the payout
      /// </summary>
		public PokerHands PokerHand
		{
			get { return _pokerHand; }
			set { _pokerHand = value; }
		}
	}
}
